from pizza import make_pizza as mp
from 类 import Dog, Car


def greet_user(user_name):
    print(f"Hello {user_name}")


def describe_pet(pet_type, pet_name="阿毛"):
    print(f"My {pet_type}'s name is {pet_name}")


def sum_number(a, b):
    return a + b


def greet_users(names):
    for name in names:
        print(name)


# 不确定参数个数的函数
def say_hello(*names):
    for name in names:
        print(f"Hello {name}")


def my_say_hello(master, *names):
    for name in names:
        print(f"{master} say hello to {name}")


# 使用任意数量的关键字
def build_profile(**user_info):
    return user_info


greet_user('李四')
describe_pet('dog', "PiPi")
describe_pet(pet_name="MaoMao", pet_type='Cat')
describe_pet("狗")
result_1 = sum_number(1, 3)
names = ['张三', '李四', '王五']
greet_users(names)
say_hello('张三', '李四', '王五')
my_say_hello('Kobe', "Allen", "LBJ", "KD")

user_info = build_profile(name='张三', sex='男', age=21, like='足球')
print(user_info)
mp(16, '葱花', '食用盐', '花椒')

my_dog = Dog('pipi', 11)
my_dog.sit()
